import request from '@/utils/request'

// 查询BwShop列表
export function listBwShop(query) {
    return request({
        url: '/api/v1/bw/shopList',
        method: 'get',
        params: query
    })
}

// 查询BwShop详细
export function getBwShop (shopId) {
    return request({
        url: '/api/v1/bw/shop/' + shopId,
        method: 'get'
    })
}


// 新增BwShop
export function addBwShop(data) {
    return request({
        url: '/api/v1/bw/shop',
        method: 'post',
        data: data
    })
}

// 新增BwShop
export function addBwNewShop(data) {
    return request({
        url: '/api/v1/bw/newShop',
        method: 'post',
        data: data
    })
}

// 修改BwShop
export function updateBwShop(data) {
    return request({
        url: '/api/v1/bw/shop',
        method: 'put',
        data: data
    })
}

// 删除BwShop
export function delBwShop(shopId) {
    return request({
        url: '/api/v1/bw/shop/' + shopId,
        method: 'delete'
    })
}

// 
export function getAreaData() {
    return request({
        url: "/api/v1/bw/addressProCit",
        method: "get",
    });
}

export function getShopDayOrder(query) {
    return request({
        url: "/api/v1/bw/shopDayOrder",
        method: "get",
        params: query,
    });
}

export function payShopDayOrder(data) {
    return request({
        url: "/api/v1/bw/payShopDayOrder",
        method: "put",
        data
    });
}

export function getSummarizing() {
    return request({
        url: "/api/v1/bw/summarizing",
        method: "get",
    });
}

